package com.glorysoft.tonglingxjpda.ui

import android.os.Bundle
import com.bumptech.glide.Glide
import com.glorysoft.tonglingxjpda.R
import com.glorysoft.tonglingxjpda.base.BaseActivity
import com.glorysoft.tonglingxjpda.base.BaseViewModel
import com.glorysoft.tonglingxjpda.databinding.ActivityPhotoBinding
import kotlinx.android.synthetic.main.activity_photo.*

/**
 * FileName: PhotoActivity
 * Author: XJH
 * Date: 2021/10/22 15:25
 * Description:
 * History:
 */
class PhotoActivity : BaseActivity<BaseViewModel,ActivityPhotoBinding>() {
    override fun layoutId(): Int {
        return R.layout.activity_photo
    }

    override fun initVariableId(): Int {
        return 0
    }

    override fun initView(savedInstanceState: Bundle?) {
        val iconPath = intent.getStringExtra("PATH")
        Glide.with(this).load(iconPath ?: "")
            .error(R.drawable.ic_launcher_background).into(photoView)
        tvRight.setOnClickListener{finish()}
    }

    override fun initData() {

    }
}